package com.sws.orderMS.pojo;

import java.util.HashMap;
import java.util.Map;

public interface PaymentMethod {

	public static final Map<String, Integer> paymentMethod = new HashMap<>();
	
	default public void initMap() {
		paymentMethod.put("Alipay", 1);
		paymentMethod.put("Wechat", 2);
		paymentMethod.put("Unionpay", 3);
	}
	
	public void Pay(double total);
	
	public double getBalance();
	
	public void setBalance(double balance);
	
	public int getPaymentMethodId(String key);
}
